package me.zhengjie.poemQuestions.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import me.zhengjie.poemQuestions.domain.UserAnswerRecord;
import me.zhengjie.poemQuestions.domain.vo.UserAnswerRecordQueryCriteria;
import me.zhengjie.utils.PageResult;
import org.springframework.http.ResponseEntity;

public interface UserAnswerRecordService extends IService<UserAnswerRecord> {


    /**
     * 查询数据分页
     * @param criteria 条件
     * @param page 分页参数
     * @return PageResult
     */
    PageResult<UserAnswerRecord> queryAll(UserAnswerRecordQueryCriteria criteria, Page<Object> page);

    String checkAndSaveAnswer(UserAnswerRecord record);
}
